<template>
  <div>
    <h1>标题:{{ title }}</h1>
    <p>价格:{{ price }}</p>
    <p>{{ intro }}</p>
    <button @click="kanFn">砍价</button>
  </div>
</template>

<script>
export default {
  props: ["title", "price", "intro", "index"],
  methods: {
    kanFn() {
      this.$emit("subprice", this.index, 1);
    },
  },
};
</script>

<style>
</style>